home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
operation-graduates.swf
/
scripts
/
DefineSprite_958_frame
/
frame_1
/
DoAction.as
Wrap
Text File
|
2011-10-17
|
2KB
|
60 lines
this.back.gotoAndStop("empty");
this.next.gotoAndStop("inactive");
this.play.gotoAndStop("inactive");
this.back.hitArea = this.back.ha;
this.next.hitArea = this.next.ha;
if(this.next.hitTest(_root._xmouse,_root._ymouse,false))
{
this.next.gotoAndPlay("active");
}
if(this.play.hitTest(_root._xmouse,_root._ymouse,false))
{
this.play.gotoAndPlay("active");
}
this.next.onDragOver = this.next.onRollOver = function()
{
this.gotoAndPlay("active");
_root.playSound("sound.rollover");
};
this.next.onDragOut = this.next.onRollOut = function()
{
this.gotoAndStop("inactive");
};
this.next.onPress = function()
{
_root.playSound("sound.onpress");
};
this.next.onRelease = function()
{
_parent.frame.nextFrame();
_root.playSound("sound.onrelease");
};
this.back.onDragOver = this.back.onRollOver = function()
{
this.useHandCursor = false;
};
this.back.onDragOut = this.back.onRollOut = null;
this.back.onPress = this.back.onRelease = null;
this.play.onDragOver = this.play.onRollOver = function()
{
this.gotoAndPlay("active");
_root.playSound("sound.rollover");
};
this.play.onDragOut = this.play.onRollOut = function()
{
this.gotoAndStop("inactive");
};
this.play.onPress = function()
{
_root.playSound("sound.onpress");
};
this.play.onRelease = function()
{
var _loc1_ = _root;
myTracker.track();
_loc1_.music.intro.stop();
_loc1_.playSound("sound.onrelease");
_loc1_.initGame(_loc1_.pickedNumbuh);
_parent.removeMovieClip();
};